rate = float(input('年回报率:')) / 100


def _rate(total):
    return total * (1 + rate / 12)


def rate_Of_Return(total, year):
    if year == 1:
        return _rate(total)
    else:
        return rate_Of_Return(_rate(total), year - 1)
